package com.ry.novel.service;

import com.ry.novel.model.dto.BookInfo;
import com.ry.novel.model.dto.UserBookShelfInfo;
import com.ry.novel.model.entity.UserBookShelf;

import java.util.List;

/**
 * @author ry
 * @since 2022-02-21 10:06
 **/
public interface UserBookShelfService {
    /**
     * 查询当前用户的书架记录
     * @return
     */
    List<UserBookShelfInfo> queryCurrentUser();

    void addBookShelf(UserBookShelfInfo userBookShelfInfo);

    Boolean queryBookInShelf(Long bookId);

    void deleteBookShelf(Long id);
}
